package com.hdc.walnut.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;

@Controller
@RequestMapping("/index")
public class IndexController {

    @GetMapping("/test")
    public String testGet(){
        System.out.println("[/test]: im in testGet");
        return ("pages/testAjax");
    }

    @GetMapping("/formAdd")
    public String testAdd(){
        System.out.println("[/formAdd]: im in testAdd");
        return ("pages/formAdd");
    }
}
